package trash;

import com.adxon.data.Figure;
import com.google.appengine.api.images.*;

public class SmImg extends Figure{
	public SmImg(){
	}
	public byte[] getBits(){
		bm=getBits("bm",bm);
		if(bm==null){
			byte[] b=getBits("bo",bo);
			if(b!=null){
				Image m=ImagesServiceFactory.makeImage(b);
				Transform z=ImagesServiceFactory.makeResize(512,512);
				m=ImagesServiceFactory.getImagesService().applyTransform(z,m,jpeg());
				bm=m.getImageData();
				tm=0;		// set modified flag
			}
		}
		return bm;
	}
}